package com.pyip.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pyip.reggie.Entity.Employee;
import com.pyip.reggie.common.R;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee> {
    R<Employee> login(HttpServletRequest request, Employee employee);

    R<String> addNewEmployee(HttpServletRequest request, Employee employee);

    R<Page<Employee>> getEmployeePage(int page, int pageSize, String name);

    R<String> updateEmployeeById(HttpServletRequest request, Employee employee);
}
